import SvgIcon from '@/components/svg-icon' // svg component

// register globally

const req = require.context('./svg', false, /\.svg$/)
const requireAll = (requireContext: any) =>
  requireContext.keys().map(requireContext)
requireAll(req)

function registerSvg(app: any) {
  app.component('svg-icon', SvgIcon)
}

export default registerSvg
